{template header}
<link rel="stylesheet" href="static/calendar/js/calendar.css" />
<script type="text/javascript" charset="utf-8" src="static/calendar/calendar.php"></script>
<h4 style="padding-left:10px;;">搜索 <i class="icon-search"></i></h4>
<form class="form-horizontal clearfix form-inline" method="post" action="">
    <div class="control-group search-group">
        <label class="control-label" >开始时间：</label>
        <div class="controls">
            <input type="text" name="startTimeStr" id="date_time_id" value="{$search['startTimeStr']}">　
            <button name="date_time_btn" type="button" id="date_time_btn" onclick="return showCalendar('date_time_id', '%Y-%m-%d %H:%M:%S', '24', false, 'date_time_btn');" class="button" id="date_time_id"/>选择</button>
        </div>
    </div>
    <div class="control-group search-group">
        <label class="control-label" >结束时间：</label>
        <div class="controls">
            <input type="text" name="endTimeStr" id="date_time_id2" value="{$search['endTimeStr']}">　
            <button name="date_time_btn2" type="button" id="date_time_btn2" onclick="return showCalendar('date_time_id2', '%Y-%m-%d %H:%M:%S', '24', false, 'date_time_btn2');" class="button" id="date_time_id2"/>选择</button>
        </div>
    </div>
    <div class="control-group search-group">
        <div class="controls">
            <button class="btn" type="submit">提交</button>　
            <button class="btn" type="reset">重置</button>
        </div>
    </div>
</form>
<h4 style="padding-left:10px;;">添加</h4>
<form class="form-horizontal clearfix form-inline" method="post" action="">
    <div class="control-group search-group">
        <label class="control-label" >时间：</label>
        <div class="controls">
            <input type="text" name="startTimeStr2" id="date_time_id3" value="">　
            <button name="date_time_btn3" type="button" id="date_time_btn3" onclick="return showCalendar('date_time_id3', '%Y-%m-%d %H:%M:%S', '24', false, 'date_time_btn3');" class="button" id="date_time_id3"/>选择</button>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">事件：</label>
        <div class="controls">
            <textarea class="form-control" rows="3" name="remark"></textarea>
        </div>
    </div>
    <div class="control-group search-group">
        <div class="controls">
            <button class="btn" type="submit">提交</button>
        </div>
    </div>
</form>

<div class="bs-docs-example pt-20" style="clear:both;">
    <table class="table table-striped">
        <thead>
            <tr>
                <th>时间</th>
                <th>事件</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            {loop $adminRemark $k $v}
            <tr>
                <td>{eval echo date('Y-m-d H:i:s',$v['starttime'])}</td>
                <td>{$v['remark']}</td>
                <td><a class="btn" href="?c=admin&a=adminRemark&deleteId={$v['id']}">删除</a></td>
            </tr>
            {/loop}
        </tbody>
    </table>
</div>
{template footer}